import require from '@/utils/_require';

const API = {
  'LOGIN': '/admin/acl/index/login',
  'LOGOUT': '/admin/acl/index/logout',
  'USERINFO': '/admin/acl/index/info',
}

export const reqLogin = (data) => require({
  url: API.LOGIN,
  method: 'post',
  data
})
export const reqLogout = () => require({
  url: API.LOGOUT,
  method: 'post',
})
export const reqUserInfo = () => require({
  url: API.USERINFO,
  method: 'get',
})